package com.bjpowernode.mapper;

import com.bjpowernode.annotation.DataScope;
import com.bjpowernode.entity.TClue;
import com.bjpowernode.entity.TClueDO;
import com.bjpowernode.query.BaseQuery;
import com.bjpowernode.result.NameValueData;
import com.bjpowernode.result.TimeValueData;

import java.util.List;

public interface TClueMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(TClue record);

    int insertSelective(TClue record);

    TClue selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TClue record);

    int updateByPrimaryKey(TClue record);

    @DataScope(tableAlias = "tc", tableFeild = "owner_id")
    List<TClue> selectCluePage(BaseQuery baseQuery);

    void saveList(List<TClueDO> cachedDataList);

    int selectCountByPhone(String phone);

    int deleteByIdList(List<String> idList);

    TClue selectById(Integer clueId);

    TClue selectByState(Integer clueId);

    Integer selectTotalClueCount();

    List<NameValueData> selectClueCountBySource();

    List<TimeValueData> selectClueCountByDay();
}